package com.atguigu.spzx.order.mapper;

import com.atguigu.spzx.model.entity.order.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: OrderItemMapper
 * Package:
 * Description:
 *
 * @Author:xiaohei
 * @Create 2024/5/25 15:23
 * Version 1.0
 */
@Mapper
public interface OrderItemMapper {
    //添加数据到order_item表
    void save(OrderItem orderItem);

    //根据订单id查询订单项的数据
    List<OrderItem> findByOrderId(Long orderId);
}
